<?php use_helper('Form') ?>
<!-- Div pour affichage des erreurs en Haut de page -->
<div id="errorDisplay"></div>
<?php $action =  url_for($module.'/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?id='.$form->getObject()->getId() : ''));?>
	<form id = "myForm" action="<?php echo $action?>" method="post" enctype="multipart/form-data" tmt:validate = "true" tmt:callback="errorOnLabels">
	<?php if (!$form->getObject()->isNew()): ?>
		<input type="hidden" name="sf_method" value="put" />
<?php endif; ?>
		<fieldset>
			<legend><?php echo $sf_user->getFlash('legendTitle') ?></legend>
			<div id="errorDisplayHaut" class="errorDisplay">&nbsp;</div>
			<?php  if ($form->isCSRFProtected()) : ?> 
				  <?php echo $form['_csrf_token']; ?> 
			<?php endif; ?>